<%@ page import="java.net.URLEncoder" %><%--
  Created by IntelliJ IDEA.
  User: wangweiqiang
  Date: 2017/10/26
  Time: 下午5:24
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>$Title$</title>
</head>
<body>

<%--两种加载方式--%>
<%@include file="/inc/head.jsp" %>
<jsp:include page="/inc/demo.jsp"/>
<hr>

<%--本站内部链接--%>
<a href="${pageContext.request.contextPath}/index.jsp">跳转到首页</a>


<%--URL地址后面如果跟了中文数据，那么中文参数最好使用URL编码进行处理--%>
<a href="${pageContext.request.contextPath}/servlet/Request?username=dfaef&name=<%=URLEncoder.encode("中华人民共和国", "UTF-8")%>">点击</a>

</body>
</html>
